package com.nightsoul.dubbo.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;
import com.nightsoul.dubbo.provider.service.DemoService;

@Service(interfaceClass=DemoService.class, group="generic")
public class MyGenericServiceImpl implements GenericService {

	@Override
	public Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException {
		if ("sayHello".equals(method)) {
            return "Welcome " + args[0];
        }
		return null;
	}

}
